projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2132629
)
Remove use of a deprecated GTK+ function in new versions
author
Philipp Stephani
<phst@google.com>
Sun, 27 Aug 2017 11:11:55 +0000
(13:11 +0200)
committer
Philipp Stephani
<phst@google.com>
Sun, 27 Aug 2017 12:09:36 +0000
(14:09 +0200)
* src/gtkutil.c (xg_make_tool_item): Use gtk_widget_set_focus_on_click
if available
src/gtkutil.c
patch
|
blob
|
history
diff --git
a/src/gtkutil.c
b/src/gtkutil.c
index 2675cd5158661fee20d4e1389c4411adfa8754b4..7a110daef1e18914476200bd1f7edfc463eb1789 100644
(file)
--- a/
src/gtkutil.c
+++ b/
src/gtkutil.c
@@
-4617,7
+4617,11
@@
xg_make_tool_item (struct frame *f,
if (wimage && text_image)
gtk_box_pack_start (GTK_BOX (vb), wimage, TRUE, TRUE, 0);
+#if GTK_CHECK_VERSION (3, 20, 0)
+ gtk_widget_set_focus_on_click (wb, FALSE);
+#else
gtk_button_set_focus_on_click (GTK_BUTTON (wb), FALSE);
+#endif
gtk_button_set_relief (GTK_BUTTON (wb), GTK_RELIEF_NONE);
gtk_container_add (GTK_CONTAINER (wb), vb);
gtk_container_add (GTK_CONTAINER (weventbox), wb);